/**
 * output package name
 */
package com.kingdee.eas.jky.enums;

import java.util.Map;
import java.util.List;
import java.util.Iterator;
import com.kingdee.util.enums.StringEnum;

/**
 * output class name
 */
public class AffirmEnum extends StringEnum
{
    public static final String YES_VALUE = "1";
    public static final String NOTS_VALUE = "2";

    public static final AffirmEnum yes = new AffirmEnum("yes", YES_VALUE);
    public static final AffirmEnum nots = new AffirmEnum("nots", NOTS_VALUE);

    /**
     * construct function
     * @param String affirmEnum
     */
    private AffirmEnum(String name, String affirmEnum)
    {
        super(name, affirmEnum);
    }
    
    /**
     * getEnum function
     * @param String arguments
     */
    public static AffirmEnum getEnum(String affirmEnum)
    {
        return (AffirmEnum)getEnum(AffirmEnum.class, affirmEnum);
    }

    /**
     * getEnumMap function
     */
    public static Map getEnumMap()
    {
        return getEnumMap(AffirmEnum.class);
    }

    /**
     * getEnumList function
     */
    public static List getEnumList()
    {
         return getEnumList(AffirmEnum.class);
    }
    
    /**
     * getIterator function
     */
    public static Iterator iterator()
    {
         return iterator(AffirmEnum.class);
    }
}